'use strict';

const BaseController = require('../../core/base_controller');

class ArticleController extends BaseController {
   async getArticleByType() {
    const { ctx } = this;
    const { type } = ctx.request.body;
    const data = await ctx.service.cache.get(`article_${type}`)
    this.success(data);
   }
}

module.exports = ArticleController;
